#ifndef EDITPROFILETASK_H
#define EDITPROFILETASK_H
#include "libs/base/task/task.h"
#include "libs/core/user/userdetail.h"

class EditProfileTask : public yc::Task
{
    Q_OBJECT
public:
    EditProfileTask(const yc::UserDetail& detail, const QString& avatar_path,
                    QObject* parent = nullptr);

    QString statusMessage() const override;
    qint64 evaluateTotalMSecs() const override;

private:
    void startImpl() override;
    void editProfile();

    yc::UserDetail detail_;
    QString avatar_path_;
};

#endif // EDITPROFILETASK_H
